#ifndef MGR_H
#define MGR_H

#include "Texture.h"
#include "Character.h"
#include <map>
#include <utility>
#include <string>
#include "Report.h"

using namespace std;

typedef map<string,pair<Texture *, int>> mapa;
typedef map<string,pair<Texture *, int>>::iterator itmapa;

class Texture;

class CharacterMgr
{
private:
	mapa m;
	bool deleteUnusedTextures;
	bool firstTexture;
	Report * report;

public:
	CharacterMgr(bool deleteUnusedTextures = true);
	Character * newChr(string _texture);
	void delChr(Character * _chr);
	Report GetReport();
};

#endif